package com.mt.api.modules.manager.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mt.api.modules.domain.OutStoreDetail;
import com.mt.api.modules.manager.IOutStoreDetailManager;
import com.mt.api.modules.mapper.OutStoreDetailMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: plover
 * @Date: 2022-05-30
 * @Description:
 */
@Component
public class OutStoreDetailManagerImpl extends ServiceImpl<OutStoreDetailMapper, OutStoreDetail> implements IOutStoreDetailManager {


    @Override
    public List<OutStoreDetail> getByOutStoreId(Integer outStoreId) {
        LambdaQueryWrapper<OutStoreDetail> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(OutStoreDetail::getOutStoreId, outStoreId);
        return baseMapper.selectList(wrapper);
    }
}
